﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using Utility;
using BUS;

public partial class hethan : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int id = int.Parse(Request.QueryString["id"]);
        Tbl_SanPham_Entities sanpham = new Tbl_SanPham_Entities();
        sanpham.STT = id;
        sanpham.TinhTrang = "Hết Hạn";
        Tbl_SanPham_BUS.Update_hethan(sanpham);
        //Response.Redirect("~/A_LetsDeal/Default.aspx");
    }
}
